﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.burry.services.CatalogService" %>
<%@ page import="com.burry.services.GoodService" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<title>女性 服饰：牛仔裤 | BARIOR</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-CN"/>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta content="" name=keywords>
<meta content="" name=description>
<meta content="" name=author>
<meta content="" name=GENERATOR>
<meta content="" name=copyright>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="resource/css/layouts.css" />
<link rel="stylesheet" type="text/css" href="resource/css/global.css" />
<link rel="stylesheet" type="text/css" href="resource/css/bariorNav.css" />
<link rel="stylesheet" type="text/css" href="resource/css/leftNav.css" />
<script type="text/javascript" src="resource/js/global.js"></script>
</head>
<body>
		
<%
	String brand = "8E";
	String cata = request.getParameter("cata");
	Map cataM = (Map)CatalogService.allCataInfo.get(cata);
	CatalogService cs = new CatalogService();
	List cataAd = cs.getCataAd(cata);
	Map cataAdMap = new HashMap();
	if(cataAd != null && cataAd.size() != 0)
		cataAdMap = (Map)cataAd.get(0);
	
	String isNav = (String)cataAdMap.get("isNav");
	String adContent = (String)cataAdMap.get("ad_content");
%>


<%
	if(cataAdMap != null && cataAdMap.size() != 0){
	
		//out.println("是否显示导航" + isNav);
		//out.println("广告内容" + adContent);
	}
%>
<DIV id="bariorHeader"><iframe src="bariorheader.html" frameborder= "no" border="0" width=100% height=100%></iframe></DIV>

<DIV id="bariorTopNav">
	<div id="bariorlogo"><a href="" class="hideAline"><img src="resource/images/common/logo.png" border=0></a></div>
	<div id="bariorNavContainer">
		<div id="bariorNavContainerInfo"></div>
  	<div id="bariorNavContainerSearch">
  		<iframe src="search.htm" frameborder= "no" border="0" width=100% height=100%></iframe>
  	</div>
  	<div id="bariorNavContainerCall"><img src="resource/images/common/new400call.png" border=0></div>
  	<div class="clearfix"></div>
  	<div id="bariorNav">
  		<div id="divisionContainer">
  			<ul>
  				
  				<%
  					List secCata = (List)CatalogService.allFaCataInfo.get(brand);
  					for(int i=0;i<secCata.size();i++){
  						Map t = (Map)secCata.get(i);
  						String cataCode = (String)t.get("cata_code");
  						List thdCata = (List)CatalogService.allFaCataInfo.get(cataCode);
  						
  				%>
  				<li class="division" onmouseover="showSubNav('division<%=cataCode%>');" onmouseout="hideSubNav('division<%=cataCode%>');"><a class="hideAline" href="catagory.do?cata=<%=cataCode%>" title="<%=t.get("cata_name")%>"><div id="division<%=cataCode%>" class="topnavSprite_division<%=cataCode%>_off"></div></a>
  				<%
  					if(thdCata != null && thdCata.size() != 0){
  					
  				%>
  					<ul id="division<%=cataCode%>Children" class="subDivisionNavHidden" style="z-index:80;">
  						<%
  							for(int j=0;j<thdCata.size();j++){
  								Map tmp = (Map)thdCata.get(j);
  								String cCode = (String)tmp.get("cata_code");
  								String cName = (String)tmp.get("cata_name");
  								
  								
  					%>
  					<li class="subDivision" onmouseover="showSubDivision('subDivision<%=cataCode+cCode%>');" onmouseout="hideSubDivision('subDivision<%=cataCode+cCode%>');"><a class="hideAline" href="catagory.do?cata=<%=cCode%>" title="<%=cName%>"><div id="subDivision<%=cataCode+cCode%>" class="topnavSprite_subDivision<%=cataCode+cCode%>_off" /></div></a></li>
  						
  					<%
  							}
  							
  						%>
  						
  					</ul>
  						
  				<%
  					}
  				%>	
  					
  					
  					
  				</li>
  				<%
  					}
  				%>
  				
  				
  			</ul>
  			<li><a class="hideAline" href="union/index.html" target="_top" title="柏瑞事业联盟"><div id="division10" class="topnavSprite_division_union"></div></a></li>
  		</div>
  	</div>
	</div>
	<div class="clearfix"></div>
</DIV>
<DIV id="DivsionTab">
	<div id="DsnMain">
		<div id="DsnMainLeftNav" <%if("0".equals(isNav)) out.print("class=\"Lefthide\"");%>>
			<div id="LeftNav<%=cata%>" class="LeftNavtop">&nbsp;</div>
			<div class="leftDepartments">
				<div id="leftDepartmentsIntro">&nbsp;</div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavCurLink" href="Division8801.html">上市新品</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="">内衣</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="Division9901.html">胸罩</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="">牛仔裤</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href="">199礼包</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href="">热销商品</a></div>
			</div>
			<div class="leftDepartments">
				<div id="leftDepartmentsPro">&nbsp;</div>
			  <%
			  	List fourCata = (List)CatalogService.allFaCataInfo.get(cata);
			  	if(fourCata == null){
			  	
			  	%>
			  	
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href=""><%=cataM.get("cata_name")%></a></div>	
			  <%
			  	}
			  	
			  else{
			  	for(int i=0;i<fourCata.size();i++){
			  		Map t = (Map)fourCata.get(i);
			  		String cCode = (String)t.get("cata_code");
			  %>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href="catagory.do?cata=<%=cCode%>"><%=t.get("cata_name")%></a></div>
			  
			  <%
			  
			  		List fifCata = (List)CatalogService.allFaCataInfo.get(cCode);
			  		if(fifCata!=null){
			  			for(int j=0;j<fifCata.size();j++){
			  				Map tmp = (Map)fifCata.get(j);
			  				String ccCode = (String)tmp.get("cata_code");
			  				
			  %>
			  		<div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="catagory.do?cata=<%=ccCode%>"><%=tmp.get("cata_name")%></a></div>
			  <%
			  			}
			  		}
			  	}
			  	
			  	}
			  %>
			  
			  
			</div>
		</div>
		<div id="DsnMainConter" <%if("0".equals(isNav)) out.print("class=\"DsnMainConterBanner\"");%>>
			<div id="DsnMainConterBanner">
				<%=adContent%>
			</div>
			<div id="DsnMainConterStor">
				<div id="SortList">
				  <a class="hideAline norml" href="">显示16条</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="hideAline norml" href="">全部显示</a>&nbsp;&nbsp;|&nbsp;&nbsp;排序方式:
				  <select class="sltSty">
				  	<option selected>按产品发布时间</option>
				  	<option selected>按价格由高到低</option>
				  	<option selected>按价格由低到高</option>
					  <option selected>按销量由高到低</option>
				  </select>
				</div>
			</div>
			
			
			
			
			<%
				List cataList = (List)CatalogService.allFaCataInfo.get(cata);
				if(cataList == null){
					cataList = new ArrayList();
					Map cataMap = new HashMap();
					cataMap.put("cata_code",cata);
					cataMap.put("cata_name",cataM.get("cata_name"));
					cataList.add(cataMap);
				}
				
				for(int i=0;i<cataList.size();i++){
					Map t = (Map)cataList.get(i);
					String code = (String)t.get("cata_code");
					String name = (String)t.get("cata_name");
		
			%>
			<div id="DsnMainConterBar">
				<div class="DsnMainConterBarTitle"><%=name%></div>
				<div class="DsnMainConterBarLine">&nbsp;</div>
				<div class="clearfix"></div>
			</div>
			<div id="DsnMainConterTab">
				
				<%
				GoodService gs = new GoodService();
						List goodList = gs.getGoodByCata(code);
						
						if(goodList == null){
							out.println("暂无商品。");
						}
					else{
					%>
				<table cellpadding=0 cellspacing=0 border=0 width=612>
					<%
					for(int j=0;j<goodList.size();j++){
						Map tt = (Map)goodList.get(j);
						
						if(j%4 == 0)
							out.println("<tr>");	
							
					%>
						<td class="proListDiv" valign=top>
						  <div><a class="hideAline" href="product.html"><img class="proListImg" src="resource/images/proListImg.jpg" border=0 onclick="Javascript:window.location='product.html';"></a></div>
						  <div class="proName"><a class="hideAline" href=""><%=tt.get("good_name")%></a></div>
						  <div class="proTag">横条纹</div>
						  <div class="proPrice">原价：<span class="scline">￥468.00</span><br />现价：<span class="nowprice">￥188.00</span></div>
						  <div class="proSaleInfo">适合各类女性</div>
						</td>
					<%		
							
						if(j%4 == 3)
							out.println("</tr>");	
					}
						
					%>
						
					
				</table>
				<%
					}
				%>
			</div>
			
			<%
				}
			%>
			
			
			
			
		</div>
		<div class="clearfix"></div>
	</div>
	<div id="DsnTabRight">

	</div>
	<div class="clearfix"></div>
</DIV>


<DIV id="bariorFooter"><iframe src="bariorfooter.html" frameborder= "no" border="0" width=100% height=100%></iframe></DIV>
</body>
</html>